<html>
<head><meta charset="utf-8"><title>understanding release internals · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html">understanding release internals</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="246548143"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/understanding%20release%20internals/near/246548143" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sam Lijin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html#246548143">(Jul 20 2021 at 06:04)</a>:</h4>
<p>I'm trying to understand how rustup chooses components for a given toolchain, and i'm a bit confused: right now <code>rustc</code> stable is <code>1.53.0</code> but </p>
<div class="codehilite"><pre><span></span><code>sxlijin@sxlijin2-devbox:2021-07-20T05:52:11+00:00:~/.cargo/bin [1]
$ ./rustfmt --version
++ 2021-07-20T06:03:31+00:00 ++ ./rustfmt --version
rustfmt 1.4.37-stable (2a3635d 2021-05-04)
</code></pre></div>
<p>and when i <code>rustup toolchain uninstall stable &amp;&amp; rustup -v toolchain install stable</code> i see</p>
<div class="codehilite"><pre><span></span><code>info: downloading component &#39;rustfmt&#39;
verbose: downloading file from: &#39;https://static.rust-lang.org/dist/2021-06-17/rustfmt-1.53.0-x86_64-unknown-linux-gnu.tar.xz&#39;
verbose: downloading with reqwest
verbose: checksum passed
</code></pre></div>



<a name="246548232"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/understanding%20release%20internals/near/246548232" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sam Lijin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html#246548232">(Jul 20 2021 at 06:06)</a>:</h4>
<p>i understand that there has to be some layer of indirection across toolchain releases, where the toolchain version isn't just a copy-paste into the version of individual components- but where is this indirection happening? why is <code>rustup</code> grabbing <code>1.53.0</code> for <code>rustfmt</code> but installing <code>1.4.37</code>?</p>



<a name="246548669"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/understanding%20release%20internals/near/246548669" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html#246548669">(Jul 20 2021 at 06:15)</a>:</h4>
<p>rustfmt’s version in not synced with rustc’s</p>



<a name="246548757"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/understanding%20release%20internals/near/246548757" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html#246548757">(Jul 20 2021 at 06:16)</a>:</h4>
<p>But to ease distribution, everything that is intended to be distributed with toolchain -vX.Y.Z is tagged with X.Y.Z in the mirror, even if the tool’s version is different</p>



<a name="246549605"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/understanding%20release%20internals/near/246549605" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sam Lijin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html#246549605">(Jul 20 2021 at 06:33)</a>:</h4>
<p>oh, that was the part that i understood</p>



<a name="246549619"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/understanding%20release%20internals/near/246549619" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sam Lijin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html#246549619">(Jul 20 2021 at 06:33)</a>:</h4>
<p>i was getting confused somewhere else... but i think i may have been doing something wrong with <code>tar</code> unpacking</p>



<a name="246549702"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/understanding%20release%20internals/near/246549702" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sam Lijin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/understanding.20release.20internals.html#246549702">(Jul 20 2021 at 06:34)</a>:</h4>
<div class="codehilite"><pre><span></span><code>$ ./rustfmt-1.53.0-x86_64-unknown-linux-gnu/rustfmt-preview/bin/rustfmt --version
++ 2021-07-19T23:31:35-07:00 ++ ./rustfmt-1.53.0-x86_64-unknown-linux-gnu/rustfmt-preview/bin/rustfmt --version
rustfmt 1.4.37-stable (2a3635d 2021-05-04)
</code></pre></div>
<p>^i was seeing something different in that version string before, not sure how/why</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>